<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 将下面这个list渲染成表格
    // 加分项: 在表格的下面显示总价
    // 加分项: 总价可以使用reduce计算
    var list = [
      {
        "title": "笔",
        "price": 2,
        "num": 2
      },
      {
        "title": "本",
        "price": 1,
        "num": 3
      },
      {
        "title": "尺子",
        "price": 3,
        "num": 1
      }
    ]

  </script>
</body>
</html>